package io.renren.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.entity.UserPeakEntity;

import java.util.Map;

/**
 *
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-01-20 12:55:41
 */
public interface UserPeakService extends IService<UserPeakEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 创建新的活动peak
     * @param UserPeakEntity
     * @return
     */
    boolean createNewPeak(UserPeakEntity UserPeakEntity);



    /**
     * 查询指定项目已筹集到的金额
     * @param campaignId 项目标识
     * @return
     */
    double getTotalPriceByCID(int campaignId);


    /**
     * 查询指定用户是否back过项目
     * @param campaignId 项目标识
     * @param userId 用户
     * @return
     */
    boolean checkBackerByUid(int campaignId, String userId);



}

